#ifndef NODELEVEL_AGGREGATOR_H
#define NODELEVEL_AGGREGATOR_H

#include <stdbool.h>
#include <stdlib.h>
#include <stdint.h>
#include <string.h>
#include <stdio.h>

#include "misc.h"

#include "closure.h"

typedef struct delegate_lock  * delegate_lock_p;


#define DUMMY  do {} while(0)

#define CONCAT(A,B) A##B


delegate_lock_p new_delegate_lock();

void delegate_lock_do(  struct delegate_lock * lock, int thread_id, Closure * c );



#endif


